import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'
// import Vuex from 'vuex'
import store from './store'

// index 用户 个人
import {users} from "@/components/index"
Vue.prototype.$user = users

//  打开新页面
import {open} from '@/skip/skip'

// import api from '@/request/api.js' // 导入api接口

// 测试Token  
// let token = 'bc4144d2141fa373b934e3db8d53fba2a845b1647725d808338e155172ea6e12'
// 医生Token
// let token = "f0f307c819807316399130a544bd1198bd9bc159c34432724ce96ab6272a4758"
// 用户的Token
// let token = "f93ecb0d07f96ba65db8a69bbaac5d1d3e3edd4f970d320124cc4006b909e0f7";
// 用户 sfsdf1
// let token = "d8b7ce4a28e9bfcd8627ff9aa18403374046e684dc00f50deb81f88079915e2e"
// 药师的Token
let token = "7751fa991351fb9e96c3a58378c34d6cdca1dfe802e9308689fa5a2897715690"

// 新医生的Token
// let token = "ae2ce3995ab11827f4692f018a59c71905ca9486bf183cb37d5866facd2e0d11"
// 新用户的Token
// let token = "36c397fa5abfd6e0b454c8b3fa061e4f63423cf4ab96a7cac9cf943dd0026747"
// 药师2号
// let token = "5192cb70e74899a34bf6c9fad7daf545d33f74ac27e5cbcedbb325e0acd1ded9"
// 调配员1
// let token = "84f760b9552f63b3e7299e9c927d95a95729c64091014e7337d38593f582db2e"
// 复合1
// let token = "916a1c6c4a4cb740825c34d698601bde230d5a44f8a591f1bbbfc1eb02c4cc8a"

// Vue.prototype.$api = api; // 将api挂载到vue的原型上复制代码
// let token = localStorage.getItem('lzyyToken')
if(token != null ){
  Vue.prototype.$token = token
}
Vue.prototype.api = 'http://lianzhong.jzbwlkj.com'
Vue.prototype.imageUrl = 'http://lianzhong.jzbwlkj.com/api/file/upload'

Vue.prototype.$open=open

Vue.prototype.$tokens=""

Vue.config.productionTip = false

Vue.use(ElementUI);

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
